home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / alertwin.dxr / 00034_change range button.ls < prev    next >
Encoding:
Text File  |  2000-01-28  |  504 b   |  27 lines

  1. property ancestor
  2. global gAlertWin, gGraphWizard
  3.  
  4. on beginSprite me
  5.   spNum = me.spriteNum
  6.   spLoc = the loc of sprite spNum
  7.   ancestor = new(script("generic button"), "new range", "internal", spNum, spLoc, me)
  8.   Inscope(ancestor)
  9.   return me
  10. end
  11.  
  12. on exitFrame me
  13.   doRollover(ancestor)
  14. end
  15.  
  16. on mouseDown me
  17.   trackMouse(ancestor)
  18. end
  19.  
  20. on performFunction me
  21.   tell window("Graph Wizard")
  22.     outScope(gGraphWizard)
  23.     goToPage(gGraphWizard, getPage(gGraphWizard, 3))
  24.   end tell
  25.   closeMe(gAlertWin)
  26. end
  27.